import request from '@/utils/request';

export function getCourseList(data) {
  return request({
    url: '/Course/GetCourseList',
    method: 'post',
    data
  });
}

export function getCourseInfo(data) {
  return request({
    url: '/Course/GetCourseInfo?coursedataID=' + data,
    method: 'get'
  });
}

export function saveCourseInfo(data) {
  return request({
    url: '/Course/SaveCourseInfo',
    method: 'post',
    data
  });
}

export function setCourseState(data) {
  return request({
    url: '/Course/SetCourseState',
    method: 'post',
    data
  });
}